﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace JqueryNet.FormControl.FormWebControl
{
    public class JHiddenField : JWebControl
    {
        HiddenField hiddenfield;
        public JHiddenField(HiddenField hiddenfield)
            : base(null)
        {
            this.hiddenfield = hiddenfield;
        }

        public override void Val()
        {
            Value = hiddenfield.Value;
        }

        public override void Val(string value)
        {
            hiddenfield.Value = value;
        }
    }
}
